//
// Created by zhuyijun on 2021/8/18.
//

#include <iostream>
#include "mytime2.h"

int main() {
    using std::cout;
    using std::endl;

    Time planning;
    Time coding(2, 40);
    Time fixing(5, 55);
    Time waxing(2, 47);
    Time weeding(4, 35);
    Time total;
    Time diff;
    Time adjusted;

    cout << "Planning time = ";
    planning.Show();
    cout << "Coding time = ";
    coding.Show();
    cout << "Fixing time = ";
    fixing.Show();

//    total = coding.Sum(fixing);
//cout << "coding.Sum(fixing) = ";
    total = coding + fixing;
    cout << "coding + fixing = ";
    total.Show();

    Time morefixing(3, 28);
    cout << "more fixing time = ";
    morefixing.Show();
    cout << endl;
    total = morefixing.operator+(total);
    cout << "morefixing.operator+(total) = ";
    total.Show();

    diff = weeding - waxing;
    cout << "weeding time - waxing time = ";
    diff.Show();

    adjusted = total * 1.5;
    cout << "adjusted work time = ";
    adjusted.Show();

    adjusted = operator*(0.5 , total);
    cout << "1.5 * total = ";
    adjusted.Show();

    cout <<"10.0 * total: "<< 10.0 * total <<endl;
    return 0;
}

